<template>
  <div>
    <van-nav-bar safe-area-inset-top placeholder :title="$t('RFControl')" left-arrow fixed @click-left="onClickLeft" />
    <div class="marginTop15">
      <div v-if="transportType==0">
        <van-cell :title="$t('Load1Setting')" is-link :to="{path:'bdrelay1'}" />
        <van-cell :title="$t('Load2Setting')" is-link :to="{path:'bdrelay2'}" />
      </div>
      <div v-if="transportType==1">
        <van-cell :title="$t('Load1Setting')" is-link :to="{path:'bdrelay1PT'}" />
        <van-cell :title="$t('Load2Setting')" is-link :to="{path:'bdrelay2PT'}" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data(){
    return {
      transportType:localStorage.getItem('transportType'),
      inverterType:localStorage.getItem('inverterType')
    }
  },
  methods: {
    onClickLeft(){
      if(this.inverterType==9){
        this.$router.push({path:'/bdx1acbasic'});
      }else{
        this.$router.push({path:'/bdsetting'});
      }
    }
  }
}
</script>

<style scoped lang="less">
.icon{
  width: 26px;
  padding-right: 10px;
}
</style>
